<jsp:directive.page contentType="text/html;charset=utf-8" />
<%@ include file="/taglibs.jsp" %>

<head>
<meta name="decorator" content="singleColumn">
<title>iobike - Resend confirmation email</title>
</head>
<body>

 <div class='single_column_content small'>
  <h2>Didn't receive your confirmation instructions?</h2>
  <p>Enter the e-mail you signed up with and we'll re-send it.</p>
  <s:actionerror />
	<form id="resendConfirmationEmailform" action="${ctx}/user!resendConfirmationEmail.action" 
		class="simple_form user" validate="true"  method="post"> 
	    <div class="input string email optional">
		    <label class="email optional" for="user_email"> Email Address</label>
		    <input class="string email required" id="user_email" maxlength="255" name="user.email" size="50" type="email" value="" />
		</div>
		<input name="submit" type="submit" class="btn btn-primary" value="Resend" />
	</form>
	<div class='clearfix'></div>
</div>
<script type="text/javascript">

$(document).ready(function() {
	document.all.user_email.focus();
    // validate signup form on keyup and submit 
    var validator = $("#resendConfirmationEmailform").validate({ 
        rules: { 
		    'user.email': {
		        remote:"${ctx}/user!checkExistence.action?checkedField=email"
		    }
        }, 
        messages: {
        	'user.email': {remote: jQuery.validator.format("<s:text name='error.emailNotExist'/>")}
        }, 
        onkeyup: false,
    });
}); 
</script>
</body>
